import axios from 'axios'
const request = axios.create({
  baseURL: process.env.NODE_ENV === 'development'? '/conner': '生成环境源',
  timeout: 8000
})
// 添加拦截器

request.interceptors.request.use(function (config) {
  return config;
}, function (error) {
  return Promise.reject(error);
});

request.interceptors.response.use(function (response) {
  return response;
}, function (error) {
  return Promise.reject(error);
})
export default request